home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 30 / Mac Magazin and MacEasy Magazine CD - Issue 30.iso / utilities / Mac OS X / Load_Monitor / src / LoadInfo.h < prev    next >
Encoding:
Text File  |  2001-12-01  |  1.3 KB  |  50 lines

  1. /*
  2.  *    Load Monitor
  3.  *
  4.  *    Copyright © 2001 Alexandre Vial, some parts from Bernhard Baehr
  5.  *
  6.  *    LoadInfo.h - System load History Container Class
  7.  *
  8.  *    This program is free software; you can redistribute it and/or modify
  9.  *    it under the terms of the GNU General Public License as published by
  10.  *    the Free Software Foundation; either version 2 of the License, or
  11.  *    (at your option) any later version.
  12.  *
  13.  *    This program is distributed in the hope that it will be useful,
  14.  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *    GNU General Public License for more details.
  17.  *
  18.  *    You should have received a copy of the GNU General Public License
  19.  *    along with this program; if not, write to the Free Software
  20.  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  */
  22.  
  23.  
  24. #import <Cocoa/Cocoa.h>
  25.  
  26. typedef struct vmdata {
  27.         double  load0;
  28.         double  load1;
  29.         double  load2;
  30. }    VMData, *VMDataPtr;
  31.  
  32.  
  33. @interface MemInfo : NSObject
  34. {
  35.     int            size;
  36.     int            inptr;
  37.     int            outptr;
  38.     VMDataPtr        vmdata;        
  39. }
  40.  
  41. - (MemInfo *)initWithCapacity:(unsigned)numItems;
  42. - (void)refresh;
  43. - (void)startIterate;
  44. - (BOOL)getNext:(VMDataPtr)ptr;
  45. - (void)getCurrent:(VMDataPtr)ptr;
  46. - (void)getLast:(VMDataPtr)ptr;
  47. - (int)getSize;
  48.  
  49. @end
  50.